package com.zhnc.dangjianpingtaiapp.gui.fragment;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;

import com.zhnc.dangjianpingtaiapp.R;
import com.zhnc.dangjianpingtaiapp.argum.GridDataHelp;
import com.zhnc.dangjianpingtaiapp.argum.ListDataHelp;
import com.zhnc.dangjianpingtaiapp.gui.base.BaseFragment;

/**
 * @author wangdh
 * @time 2019/4/2 13:50
 * @describe
 */
public class HomeSheHuiFragment extends BaseFragment {
    private FrameLayout shehui_1;
    private FrameLayout shehui_2;
    private FrameLayout shehui_3;
    private FrameLayout shehui_4;
    private FrameLayout shehui_5;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_home_she_hui, container, false);
    }


    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        shehui_1 = getView().findViewById(R.id.shehui_1);
        shehui_2 = getView().findViewById(R.id.shehui_2);
        shehui_3 = getView().findViewById(R.id.shehui_3);
        shehui_4 = getView().findViewById(R.id.shehui_4);
        shehui_5 = getView().findViewById(R.id.shehui_5);

        ItemGridFragment _1 = new ItemGridFragment();
        _1.setRely(GridDataHelp.shehui1(getActivity(), _1));
        re(_1, R.id.shehui_1);

        ItemGridFragment _2 = new ItemGridFragment();
        _2.setRely(GridDataHelp.shehui2(getActivity(), _2));
        re(_2, R.id.shehui_2);

        ItemGridFragment _3 = new ItemGridFragment();
        _3.setRely(GridDataHelp.shehui3(getActivity(), _3));
        re(_3, R.id.shehui_3);

        ItemGridFragment _4 = new ItemGridFragment();
        _4.setRely(GridDataHelp.shehui4(getActivity(), _4));
        re(_4, R.id.shehui_4);

        ItemGridFragment _5 = new ItemGridFragment();
        _5.setRely(GridDataHelp.shehui5(getActivity(), _5));
        re(_5, R.id.shehui_5);


    }
}
